package cn.fzkj.task.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AcyncService {


    @Async // 标注这是异步方法
    public void hello(){
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("请求处理中。。。。。。。。。");
    }
}
